package com.hzw.saas.common.config.action;


import com.hzw.saas.common.config.enums.ActionEnums;
import com.hzw.saas.common.config.msg.ChatMsg;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import java.util.UUID;

@ApiModel(value = "在线用户列表查询")
@Data
@ToString
public class FetchOnlineUsersResp extends ChatMsg {

    public FetchOnlineUsersResp(){
        this.setActionType("2");
        this.setAction(ActionEnums.ACTION_FETCH_ONLINE_USERS_LIST_REQUEST.getAction());
        this.setRequestId(UUID.randomUUID().toString());
    }
    @ApiModelProperty(value = "分页参数，页码")
    private int page;

    @ApiModelProperty(value = "分页参数，分页数量")
    private int count;

    @ApiModelProperty(value = "用户id")
    private String userId;

    @ApiModelProperty(value = "用户名称")
    private String userName;

    @ApiModelProperty(value = "最后一条消息")
    private String lastMsg;

    @ApiModelProperty(value = "最后一条消息的发送人")
    private String lastSender;
}
